package mid;

import org.junit.Test;

public class a633_平方数之和 {
    public boolean judgeSquareSum(int c) {
        for(long a=0; a * a<=c;a++){
            double sqrt = Math.sqrt(c - a * a);
            if(sqrt==(int)sqrt)return true;
        }
        return false;
    }
    @Test
    public void test(){
        System.out.println(judgeSquareSum(2));
    }
}
